package com.ruoyi.pcwl.domain.enums;

//使用enum关键字枚举类
public enum ScenicSpotTypeEnum {
    //1.提供当前枚举类的对象，多个对象之间用","隔开，末尾对象";"结束
    ARBORETUM(1,"植物园"),
    ZOO(2, "动物园"),
    AQUARIUM(3, "海洋馆"),
    HOTSPRING(4,"温泉"),
    NATURAL(5, "自然风光"),
    MSGJ(6, "名胜古迹"),
    PERFORMANCE(7, "演出演义"),
    OTHER(8, "其它景点");

//    SUMMER("夏天","夏日炎炎"){
//        @Override
//        public void show() {
//            System.out.println("宁夏");
//        }
//    },
//    AUTUMN("秋天","秋高气爽"){
//        @Override
//        public void show() {
//            System.out.println("秋天不回来");
//        }
//    },
//    WINTER("冬天","冰天雪地"){
//    };

    //2.声明Season对象的属性:private final修饰
    private final Integer categoryId;
    private final String categoryName;

    //2.私有化类的构造器,并给对象属性赋值

    private ScenicSpotTypeEnum(Integer categoryId, String categoryName){
        this.categoryId = categoryId;
        this.categoryName = categoryName;
    }

    //4.其他诉求1：获取枚举类对象的属性
    public Integer getCategoryId() {
        return categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }
}
